activitypods / activitypods/mastopod

Should we be able to unboost an object after boosting it ?

Aperta
#50 12 commenti 0 reazioni 1 assegnatario Rivendicata da @SlyRock Vedi su GitHub
Lingua principale
JavaScript
Stelle
25
Fork
2
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

# Context
I'm working on displaying the number of likes, replies and boosts on objects in mastopod and realized that as much as we can currently boost `Notes` we can't "unboost" them.

I've implemented the `shares`collection on object in semapps : https://github.com/assemblee-virtuelle/semapps/pull/1369 but I religiously sticked to the [AP spec](https://www.w3.org/TR/activitypub/#shares) that only states that objects MAY have a `shares` collection containing a list of announces targeting it.

# Proposition
Emulate the way [`likes` are handled](https://www.w3.org/TR/activitypub/#likes) by adding a `shared` collection on the actor containing the objects he has shared.

This way the `boost` button could be toggled to `unboost` on already boosted objects.

Any thoughts on this @srosset81 @Laurin-W ?

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.