mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-11-24 08:57:03 -05:00
add some pros to the source field
This commit is contained in:
parent
70fbfd6cf3
commit
bd640a7099
1 changed files with 6 additions and 2 deletions
|
@ -21,11 +21,15 @@
|
|||
|
||||
This way of expressing stars will have the following features:
|
||||
|
||||
1. !ctor & object may be dereferenced by (ap-)api
|
||||
1. Actor & object may be dereferenced by (ap-)api
|
||||
2. The activity can be referenced itself (e.g. in order to express a result of the triggered action)
|
||||
3. Star is a special case of a Like. Star only happens in ForgeFed context. Different things should be named differnt ...
|
||||
4. With the `source` given it would be more easy to distinguish the uri layout for object and actor id's and make implementation more straight forward
|
||||
1. The `source` field reflects the software sending an activity. Values of may be forgejo, gitlab, ...
|
||||
2. Knowing the sending system will it make easier to interact with:
|
||||
1. We know exactly how the actor can be derefernced (see: https://codeberg.org/meissa/forgejo/src/commit/7cac9806f8247963b1cdce3f2c5f5d1bc3763fbe/models/forgefed/actor.go#L121)
|
||||
2. We know how we can validate the given references (see: https://codeberg.org/meissa/forgejo/src/commit/7cac9806f8247963b1cdce3f2c5f5d1bc3763fbe/routers/api/v1/activitypub/repository.go#L180)
|
||||
|
||||
See also:
|
||||
1. spec in clojure: https://repo.prod.meissa.de/meissa/activity-pub-poc/src/branch/forgefed_star/src/test/cljc/org/domaindrivenarchitecture/fed_poc/forgefed_test.cljc#L36-L41
|
||||
1. [spec in clojure]: https://repo.prod.meissa.de/meissa/activity-pub-poc/src/branch/forgefed_star/src/test/cljc/org/domaindrivenarchitecture/fed_poc/forgefed_test.cljc#L36-L41
|
||||
|
||||
|
|
Loading…
Reference in a new issue