Commit Graph

8 Commits (089d812dc8ccb8bf87913f47d7dd080675799742)

Author SHA1 Message Date
Dessalines 471abf7f29 Removing old comment_view. 4 years ago
Dessalines f456f5da46 Re-organizing source tables into a different folder. 4 years ago
Nutomic 9cc1cfc973
Apub local object handling (#1297)
* Limit visibility of some traits and methods

* WIP: alternative way to handle non-local object parsing

* finish this

* cleanup

* Move check for locked post into Comment::from_apub()

* Mark user as updated after fetching

* Should set last_refreshed_at, not updated

* Add ApubObject trait in DB, with method read_from_apub_id()

* Create shared, generic implementation for `FromApub`, prefer local data

* Check for community ban when parsing post/comment (fixes #1287)

* Fix tests (changes in get_object_from_apub() prevented `Update` from working)

* Support parsing `like.object` either as URL or object

* Send out like.object as URL, instead of full object (fixes #1283)

* add todo
4 years ago
Felix Ableitner cd3f20e49b Populate `content` with HTML, and `source` with markdown (ref #1220) 4 years ago
Felix Ableitner b469b6d8d3 Separate logic for user and community inbox
more refactoring with tons of changes:

- inbox functions return LemmyError instead of HttpResponse
- announce is done directly in community inbox
- reorganized functions for handling inbox activities
- additional checks for private messages
- moved inbox handler functions for post, comment, vote into separete file
- ensure that posts, comments etc are addressed to public (ref #1220)
- probably more
4 years ago
Felix Ableitner 6d17d5ead2 Ignore incoming activities which have been received before (ref #1220) 4 years ago
Felix Ableitner 3d5647b16f Limit amount of HTTP requests to handle activities (fixes #1221) 4 years ago
Felix Ableitner 1a3b96b054 Organise activity receive files by object type, not by activity type 4 years ago