Questions about /display/
@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.
Hypolite Petovan
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
Philipp Holzer likes this.
Friendica Developers reshared this.
Philipp Holzer
in reply to Philipp Holzer • •Friendica Developers reshared this.
Philipp Holzer
Unknown parent • •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 ...
Hypolite Petovan likes this.
Friendica Developers reshared this.
Philipp Holzer
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.
Hypolite Petovan
in reply to Philipp Holzer • • •friendica/display.php at b1eba05e931dd27c301b5df2bc314edffeffb10c · friendica/friendica
GitHubFriendica Developers reshared this.
Philipp Holzer
in reply to Hypolite Petovan • •*_content
route and thought the only place, where it's called is atupdate_display
Hypolite Petovan likes this.
Friendica Developers reshared this.
Philipp Holzer
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
frommod/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.
Philipp Holzer
in reply to Philipp Holzer • •Got it, it was a little bit hidden *gg*:
github.com/friendica/friendica…
and then
github.com/friendica/friendica…
friendica/Conversation.php at 4a626ef10176a6f4fca0367cd890f836c2ade44a · friendica/friendica
GitHubHypolite Petovan likes this.
Friendica Developers reshared this.