# ActivityPub Client-to-Server FAQ

**URL:** <https://socialhub.activitypub.rocks/t/activitypub-client-to-server-faq/1941>\
**Category:** Client to Server\
**Created:** [July 21, 2021, 5:18pm UTC](https://socialhub.activitypub.rocks/t/activitypub-client-to-server-faq/1941 "2021-07-21T17:18:17Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![lanodan](https://socialhub.activitypub.rocks/user_avatar/socialhub.activitypub.rocks/lanodan/32/40_2.png) [@lanodan](https://socialhub.activitypub.rocks/u/lanodan)\
**Post date:** [July 23, 2021, 12:20am UTC](https://socialhub.activitypub.rocks/t/activitypub-client-to-server-faq/1941/3 "2021-07-23T00:20:06Z")

</div>

> [@heluecht](#):
>
> How could notifications be handled?

FedBox filtering could be a start as notifications are loosely just the actor being present into the `to` field (normalization helps there), presence in the `cc` field being for the regular timeline.  
Quite the same semantics as ~formal emails there.

> [@heluecht](#):
>
> How does one handle media uploads?

Extension to ActivityPub, which Pleroma implemented. I wrote a standardization draft and ended up never posting it because of the bunch of changes and lack of examples in the Fediverse Enhancement Proposal project and the more [discussion-oriented thread](https://socialhub.activitypub.rocks/t/as-uploadmedia-specification-proposal/1068) I started went nowhere.

I’ll likely end up posting it properly into litepub, here is the draft: [https://hacktivis.me/tmp/uploadMedia.html](https://hacktivis.me/tmp/uploadMedia.html)

> [@heluecht](#):
>
> Has the mobile client got to fetch each single remote profile on its own? (since posts could but mostly doesn’t contain the complete profile)

In my opinion the local client should _never_ fetch remote posts by itself and instead always use the `proxyUrl` endpoint (which pleroma doesn’t have yet btw) so authentication can work with keeping the users’ key into the server as currently done.

> [@heluecht](#):
>
> How could searches (for profiles or content like hashtags) be implemented?

Maybe FedBox filtering could work for this but I’d rather have something which embraces good full-text search rather than end up with something like `grep(1)`.

> [@heluecht](#):
>
> What are you doing when you receive a contact request both on the regular desktop and the mobile app. How does the mobile app gets to know that the request had been accepted - or rejected - via the desktop?

You mean a `Follow` activity? Implementation defined again but I guess sending a second `Accept`/`Reject` would be an invalid activity, of course ActivityPub has basically no such thing as error messages…

> [@heluecht](#):
>
> What about some fancy stuff like shared read/unread marker?

There is the `Read` activity, only software I’m aware of which uses it is Honk.

> [@heluecht](#):
>
> How can you fetch the whole context of a single posts (parents and children of the whole conversation).

Something like FedBox filtering could be used there I guess but there is a lack of a “Give me anything matching this, regardless of the endpoint/collection”

---

_[View the full topic](https://socialhub.activitypub.rocks/t/activitypub-client-to-server-faq/1941)._
