Skip to main content


Questions about /display/


!Friendica Developers

@Michael Vogel - I'm currently moving the mod/display.php

As far as I can see, there are two main-routes for this controller:

  • /display/{guid}
  • /display/feed-item/{uri-id}.atom[/conversation.atom]


and as far as I can say, it would be better if the second route should have an own root, like `dfrn_item/{uri-id}[/conversation.atom`, as it's a DFRN only logic.
Am I right so far?

If so, can I move it to this new path or is this path necessary for the federation usage, means it could be called from other servers too?
I just found calls with prefix DI::baseUrl(), so I guess it's "just" for the server itself, but I'm not sure ...

Friendica Developers reshared this.

in reply to Philipp Holzer

@Philipp Holzer The formats seem to be

  • /display/{guid}
  • /display/feed-item/{uri-id}[.atom]
  • /display/feed-item/{uri-id}/conversation.atom

Friendica Developers reshared this.

in reply to Philipp Holzer

I was mixing two and three because the .atom postfix of the item-uri is possible for the third route as well, but you're right, it doesn't seems plausible

Friendica Developers reshared this.

Unknown parent

friendica (DFRN) - Link to source
Philipp Holzer

ah ok, I was misleaded because of the DFRN::itemFeed() call.

I think I let the routes as-is because I'm not sure what changing the route would mean to ATOM users ...

Friendica Developers reshared this.

in reply to Philipp Holzer

funny enough .. the only place, where the ATOM links are build is at mod/update_display.php

And I don't find any occurrence of a link, like /update_display?p=<profileid>.

Do you know where it is used ?

Friendica Developers reshared this.

in reply to Hypolite Petovan

ah damn .. my fault .. ooohhh maann thanks for your help and discussion here .. I forgot about the legacy *_content route and thought the only place, where it's called is at update_display

Friendica Developers reshared this.

in reply to Philipp Holzer

@Michael Vogel / @Hypolite Petovan

I still struggle at mod/update_display.php
It's the only place, where the display_content from mod/display.php is called with the parameter $update = true.

But I don't find any place inside Friendica, where we call /update_display?p=<profile_uid>.

Do you know if this is till in use and if so, what's the meaning of it?
If we wouldn't use it anymore, there's a lot of code at mod/display.php, which I could delete in that case..

Friendica Developers reshared this.