Skip to main content


 
1455 #NoG20 | Pfarrer der Johanneskirche duldet Barrio auf Wiese seit 12:00. Noch viel Platz in St.Pauli, Max-Brauer-Allee, Sternbrücke
#yeswecamp #schlaflosinHH


 
1400 #NoG20 | 1. Barrio in Hamburg steht seit 12Uhr in St.Pauli, Max-Brauer-Allee, Johanneskirche an der SternbrückeBild/Foto
#yeswecamp #schlaflosinHH


 
Die Erklärung,
"Immer wenn wir solche Camps hatten, ist es zu schweren Ausschreitungen gekommen"

ist ein bisschen wie die Tatsache, dass in Regionen mit mehr Störchen auch mehr Kinder geboren werden.
Bild/Foto
#noG20 #YesWeCamp #schlaflosinHH



 
@Friendica Developers

Hi @Michael Vogel I have a problem with dba::select(). It seems that this function doesn't work without parameters. E.g.:
  1.  $g = dba::select('photo',
  2.   array('width', 'height'),
  3.   array(
  4.   'resource-id' => $image_id,
  5.   'uid' => local_user(),
  6.   'scale' => 2
  7.   )
  8.  );


gives me no result. It seems that the $sql (query) is constructed correctly in dba:select()but something happens while executing dba::p() so dba::select() don't output the result.
Or is this an intended behavior?

Michael Vogel vor 2 Monate
BTW: You have to work this way, when not selecting a single row:

$result = dba::select($table, $fields, $condition);
while ($row = dba::fetch($result)) {
....
}
dba::close($result);

Rabuzarus vor 2 Monate
Ahh ok, this may be the cause of the error,

Steffen K9 vor 2 Monate
Hmm. Der Beitrag wurde vor 8 Stunden erstellt. Die Benachrichtigung (Rabuzarus hat einen Beitrag erstellt) kam vor 3 Minuten.



 
@Friendica Developers
Just to demonstrate how helpful our #doxygen docu could be while writing code

Bild/Foto

Bild/Foto

Bild/Foto
Michael Vogel vor 2 Monate
Linefeeds would be cool in the first place.

Hypolite Petovan vor 2 Monate
I can't see the full-size images since your SSL certificate has been revoked according to Chrome.

Fabio vor 2 Monate
Works for me. Firefox 53.0.3

Rabuzarus vor 2 Monate
Yes newer versions of FF and Chrome revoke the WoSign CA certificates.
Problem is that I'm on a shared host (netcup) and don't get LetsEncrypt certificates in an easy way (with automatic renew)

If anybody knows a very simple way to create LetsEncrypt certificates (for all my subdomains) with a reminder after 3 months to update the certificates, let me know.



 
@Friendica Developers

I have just realized that when I open a profile page from the "new" global directory, the zrl parameter isn't transmitted anymore to the opened profile.

@Hypolite Petovan
Can you have a look on this issue

Hypolite Petovan vor 3 Monate

Hypolite Petovan vor 3 Monate
The fix has been deployed on dir.friendica.social, thanks for your vigilance!



 

notifications/intros module don't seem to work


@Friendica Support

can anybody confirm the issue that notifications/intros don't work.

Everytime I try to call that page I get a 500 Internal Server Error. The php error log don't show any errors.

I use the latest 3.5.2RC

Rabuzarus vor 3 Monate
Thank you very much @Michael Vogel for taking the time to fix it.
I did a small improvement for notifications/intros page. https://github.com/friendica/friendica/pull/3509

Since there is the chance that we have the data already in our db, there is no need to probe everytime. In case of unreachable instances (of the contact) this does save a lot of time when loading the page. So I would treat it as a bugfix

Michael Vogel vor 3 Monate
I haven't checked why the probing is done. Of course this could be done asynchronous in the background.

Rabuzarus vor 3 Monate
Should I close the PR?

Michael Vogel vor 3 Monate
No. I think it could be changed like proposed there.



 
@Friendica Developers
Can anybody explain to me how the browser desktop notifications work in friendica? Every time when I log into friendica I get over half an hour different desktop notifications.

Rabuzarus vor 4 Monate
OK. I have created a PR - https://github.com/friendica/friendica/pull/3308
You will find the description of the issue in the PR description.

@Steffen K9 My friendica network stream isn't very active. Can you have a look if everything does work as expected after the PR got accepted?

Steffen K9 vor 4 Monate
Yes, I'll check it...

Steffen K9 vor 4 Monate
I have pulled from develop. I looks fine. I'll watch it.

Steffen K9 vor 4 Monate
Hello @Rabuzarus
the good news is there is no desktop notification flood anymore. The bad news is I don't get any desktop notifications now. I just tested this with some mentions and a comment. I tried it with Firefox and Chromium. I get the notifications but no desktop notifications.

Rabuzarus vor 4 Monate
:-(
can you please have a look at the browser dev tools in the js console if it does print any error when a desktop notification should arrive. (And like always after the PR a browser cache refresh needs to be done)

Yesterday I got one desktop notification

Steffen K9 vor 4 Monate
There was nothing in the dev console. But I'm glad you found something. :-)

Rabuzarus vor 4 Monate
I have it :-)
https://github.com/friendica/friendica/blob/develop/js/main.js#L252

The notification e.seen can be false but also 0 (next to 1 -> don't know if we have cases where it is true)

I would like to know if would be better to fix it in the php code. Simple js fix would be && (!e.seen || e.seen == 0) instead of && !e.seen.
But maybe we should have only two states true or false or 0 and 1.

I don't know. The bool values (false) seems to be used for connection requests while the integer (0) seems to be used for post/comments

What do the other devs say?

Rabuzarus vor 4 Monate

Fabio vor 4 Monate
but.. but.. in js you can use 0 or false.. and
≫ x = 0
← 0
≫ !x
← true


:-)

Rabuzarus vor 4 Monate
But the former PR with !e.seen didn't work as expected

Steffen K9 vor 4 Monate
Bild/Foto
Aaah!



 
@Friendica Developers @Hypolite Petovan
after moving Text_Highlighter to composer vendor directory the sample.css is missing. It was loaded in view/theme/templates/head.tpl and view/theme/frio/templates/head.tpl .
Hypolite Petovan vor 4 Monate
Is it really useful since it's a sample? My plan is to get rid of Text_Highlighter for something lighter that doesn't require PEAR. Ideally something in Javascript so that we don't generate complicated HTML that we have to skip to send to Diaspora for example.

Rabuzarus vor 4 Monate
Is it really useful since it's a sample?


Yes because it is for color highlighting. Otherwise we would need to write it by our own
  1.  function hallo($a, $test = true) {
  2.   $var = t('test for colors through sample.css');
  3.   return false



My plan is to get rid of Text_Highlighter for something lighter that doesn't require PEAR.

Good idea, because Text_Highlighter isn't maintained anymore.
But can we restore the original behavior until we have the replacement? Does mean including the sample.css.

Tobias vor 4 Monate
Only if the JS is doing it's job also with LibrJS enabled ;-) Also remember the people who have JS disabled for Malware protection.

Hypolite Petovan vor 4 Monate
I didn't know LibreJS but it's worth checking if Highlight.js, the library I was eyeing, is compatible with.

Furthermore, syntax highlighting is just display sugar, I don't see an issue with it being absent if Javascript is disabled.

Rabuzarus vor 4 Monate
Also remember the people who have JS disabled for Malware protection.

The basic core function should also work without js. But on the other side we should make it possible to have good js implementations to have a comfortable modern GUI. The syntax highlighting e.g. is such a case. We shouldn't hardcode such stuff. It federates very bad with other networks and we are bound to a specific library and its way of generating html.

Rabuzarus vor 4 Monate
I'm interested in how you will solve the problem with new added content (e.g.infinite scrolling)

Hypolite Petovan vor 4 Monate
Either the highlighting script is automatically triggered for each DOM change, or we can manually trigger it in the /update callback.


Rabuzarus vor 4 Monate
Ahh cool. I also wanted to change it but I haven't found the file sample.css. :-)



 
@Friendica Support

While I did some searching with friendicas fulltext search and tag search I noticed that there are many top-level posts from diaspora users in my stream. So I looked in the db. And I noticed that I'm the only person on my instance who does have connections with diaspora users (and this two contacts are not real diaspora contacts. They are hubzilla contacts.)
Social relay is disabled.

So why do I have that many top-level posts from diaspora users who no one knows?

  1.  SELECT COUNT( `a`.`id`) AS `total`
  2.  FROM `item` a
  3.  LEFT JOIN `item` `b` ON `a`.`id` = `b`.`id`
  4.  INNER JOIN `contact` ON `a`.`contact-id` = `contact`.`id`
  5.  WHERE `a`.`id` = `b`.`parent` AND `contact`.`uid` = 0 AND `contact`.`network` = 'dspr'


-

total
------
1867

Rabuzarus vor 6 Monate
some report from the logging (Yesterday unit now).

I got ca. 50 "Unwanted messages" from diaspora users.
Until 3h ago the messages did come from 3 diaspora contact where I have rejected their connection request some time ago.

3h ago I rejected another connection request from a diaspora users who has been marked 2 weeks as pending contact. And as a result I get now also "unwanted messages" from this user since 3h (note: @Michael Vogel PR is working. The messages were not saved in the db).

But there is one strange thing. To test my thesis from some posts above I registered an account on iliketoast.net to reproduce this. I sent a connection request to this account and did send a public message from the dspr account. Nothing happend. Afterwards I rejected the connection request on the friendica side and did send a new public messages. Again nothing happens.

According to the logs the public messages from my dspr account were discarded because thy were sent directly to the user (and not to receive/public).

The only difference in the handlin... mehr anzeigen
Dieser Beitrag wurde bearbeitet. (vor 6 Monate)

Michael Meer vor 6 Monate
Sounds there's also some space for improvements for Diaspora as well. They can reduce the traffic and spare the bandwith and computing time when they don't send out the messages. But it's their decision for sure.



 
@Friendica Support

Fulltext search doesn't work on my system anymore. The logfile says

2017-02-08 21:06:37@ll7dsh4pv24o7a5a29ii32ed47 [NORMAL]:dba.php:257:q DB Error (Connected) 1191: Can't find FULLTEXT index matching the column list
2017-02-08 21:06:37@ll7dsh4pv24o7a5a29ii32ed47 [NORMAL]:dba.php:290:q dba: SELECT `item`.`author-link`, `item`.`author-name`, `item`.`author-avatar`,
`item`.`owner-link`, `item`.`owner-name`, `item`.`owner-avatar`,
`item`.`contact-id`, `item`.`uid`, `item`.`id`, `item`.`parent`,
`item`.`uri`, `item`.`thr-parent`, `item`.`parent-uri`,
`item`.`commented`, `item`.`created`, `item`.`edited`,
`item`.`verb`, `item`.`object-type`, `item`.`postopts`, `item`.`plink`,
`item`.`guid`, `item`.`wall`, `item`.`private`, `item`.`starred`,
`item`.`title`, `item`.`body`, `item`.`file`, `item`.`event
... mehr anzeigen

Hypolite Petovan vor 6 Monate
I don't have fulltext search since I installed Friendica and I didn't run convert_innodb.sql.

Rabuzarus vor 6 Monate
Yes I have noticed it while I tried to test if I can reproduce this behavior on other instances.

But you can have a look in the admin settings if fulltext search is enabled

Hypolite Petovan vor 6 Monate
Yes it is. I didn't mind so far because I have little use for it, but it indeed never worked for me.


Hypolite Petovan vor 6 Monate
Nice work, detective! 🕵️

Michael Vogel vor 6 Monate
The option to use it can be deactivated. BTW: This full text search doesn't really work on a little bit larger servers due to our database structure.



 

Tech Preview - Frio Album Gallery


@Friendica Support @Friendica Developers @UX Watchdogs @Friendica Theme Developers

LIke I mentioned already in other threads the last really "big" missing thing in the Frio theme is the template for the photo view (and related templates like for uploading and editing photos). I was very unsatisfied how the other themes do handle the photo view. Though I'm not active at the commercial social networks I like how fb and g+ does presenting the images in the album.

Last year, I often sat in front of my computer for a long time and tried several approaches to have a modern photo view in Frio but I always had to give up because it didn't work.

It seems that I have made some progress now.

Bild/Foto

... mehr anzeigen
Dieser Beitrag wurde bearbeitet. (vor 7 Monate)
Rabuzarus vor 6 Monate
OK I have to change to the developer branch. So this tech preview will be no longer available.



 
Bild/Foto

Rabuzarus vor 7 Monate
Your comment has created this public post. I've uploaded the picture with the option to not posting it to the wall. But I guess that this option isn't saved with the picture in the db.

Thomas Willingham vor 7 Monate
We create an item for every photo - they just aren't all visible. The comment doesn't create it, it just lets you see it.



 
@Friendica Developers

The last days I transferred some developer documentation from the friendica github wiki to the help section in friendica.

Some question came to my mind:
How can we lower the barrier for users to participate at the user documentation?
How can we avoid to have different data at different platforms (to lower maintenance work)?

There exist a possibility to sync the github wiki between any source:
https://coderwall.com/p/3aamsa/sync-documentation-between-source-and-wiki-on-github

This would give the regular users the possibility to know nothing about git and to use the wysiwyg editor for participating at the documentation. He/she would only need an account at github

Tobias vor 9 Monate
We just should not get tied to close to github, should they turn into sourceforge... but as the Wiki is then part of the repository that should not be a problem.

Rabuzarus vor 9 Monate
Right. But this would rather mean that we have to take care that we don't depend in critical areas on github.

Tobias vor 9 Monate von Friendly
I would say documentation is critical ;-) but as it in a repository and we have copies of it that are pushable elsewhere I think it is ok in this case.

Rabuzarus vor 9 Monate
I would say documentation is critical


Yes, yes true. What I meant was that there have to be always the possibility to take our stuff and move on to other services (meaning to have no dependences on "github only" features)



 
@Friendica Developers

Please have a look at: https://github.com/friendica/friendica/blob/develop/mod/dfrn_request.php#L87

Is there a reason why we need (`url` = '%s' OR `nurl` = '%s'). Why do we need to include url into this query?

I'm asking because I have two connection request from Tim Schlotfeldt. One with http scheme and one with https scheme. But it is the same profile.

I would like to remove url in dfrn_request.php to avoid this behavior. Just want to be sure if anybody knows about possible side effects.


 
@Friendica Developers

is there a way to call in array_walk() a callback static function/method which is inside a class? I tried array_walk($arr_tags, array('ParseUrl', 'arrAddHashes')); (it should use ParseUrl::arrAddHashes() as callback) but it doesn't work

Hypolite Petovan vor 9 Monate
Although the actual callback function should have this form:
  1.  function callback(&$value[, $key]) {
  2.      // Processing
  3.      $value = $new_value;
  4.  }

Hypolite Petovan vor 9 Monate
If you want to work with a function that returns the result instead of modifying the parameters, array_map is more indicated.



 
@Friendica Developers @Friendica Support

I just noticed some issues with the plink (link to source) and the scheme handling of the plink.

I don't know if it is a wrong configured server setting but when I want to visit an item of @Hypolite on Friendica through "link to source" I will redirected to his page with the scheme http instead of https. With the scheme http I get some 'Access-Control-Allow-Origin' errors and the awesome font icons aren't loaded

My question is, should we really remove the scheme from the plink? Even if its a public post why shouldn't we use a secure transport protocol if it is available?

Rabuzarus vor 9 Monate
I know that it was done for internal links. I don't know why it was done in this case for external links (https://github.com/friendica/friendica/blob/develop/include/text.php#L1535)

Michael Vogel vor 9 Monate
It only removes it when the link is internal - but there is a bug in the function.

Michael Vogel vor 9 Monate

Rabuzarus vor 9 Monate
thanks



 

Announcement: cal addon has been moved to core


@Friendica Support
In one of the last commits in the develop branch I implemented an public calendar for the profile page. This calendar is available under cal/NICKNAME and is visible if you visit a foreign profile page.

The public calendar containing all personal events of the profile owner while respecting all permissions of the event (groups, deny and so on).

I think this is a big step forward to use friendica for event announcements (e.g. if the profile owner is a club or an organisation).

After merging the code for the public calendar I noticed that there was a conflict with the cal Addon which uses the same path. (the cal Addon allows you to export your events). So I have moved the code of the cal Addon to core and have marked the call addon as unsupported.
If you are on latest git develop you can enable the export function for the puplic calendar in you personal settings.

Note for friendica admins:
If you are on latest git develop please go to your admin settings and disable the cal addon. Afterwards update your addon directory to the latest git friendica-addons.


 

Some things for polisching


@Friendica Support @Friendica Developers @UX Watchdogs

While working on unifying (polishing) some things I noticed some things to which I want to point. This is not only for developers. Most things are questions about how to make a good friendica graphical user interface:

  • We need a good interpretable translation for the different page types (fan account, community account and so on). They should make sense in all scopes of friendica. Would be cool if we get this until release. (Some thoughts about possible later development are at the bottom of this post)
  • I'm not full satisfied how I integrate the account type in hcard/vcard. In the present state it will be
... mehr anzeigen

Michael Vogel vor 2 Jahre
A user can always interact with an account, no matter if its a regular account or something else. So the user should know if it's a forum or not (since a forum is different in its behaviour). I never tested private groups. So I don't know the difference between a public forum and a private group.

Rabuzarus vor 2 Jahre
ok, then I will change this behaviour of vcard/hacard in the evening. Community Forum = approve Request automatically, private Group = the owner of the Forum must accept the Request

Regarding the Fan Account I thought users would not have the same rights. They would accepted as Fans not as Friends. I haven't used it so far. From my understanding a Fan is something different than a Friend. My intention was to give the user a visual notice if the account is something like an info channel (like the heise (inofficial) ) and not a regular account

Michael Vogel vor 2 Jahre
We should test - but I hope that it is possible that someone follows a "Fan account" but then the owner of the fan account is following you as well.

The differance between "regular account" and "fan account" is more like Facebook vs. Google+. In Facebook the other person has to approve your contact request. On Google+ a person can follow you at every time.