aboutsummaryrefslogtreecommitdiff
path: root/lib/pleroma/object.ex
AgeCommit message (Collapse)Author
2022-09-11ObjectView: do not fetch an object for its IDHélène
Non-Create/Listen activities had their associated object field normalized and fetched, but only to use their `id` field, which is both slow and redundant. This also failed on Undo activities, which delete the associated object/activity in database. Undo activities will now render properly and database loads should improve ever so slightly.
2022-09-04Merge branch 'fix/federation-context-issues' into 'develop'tusooa
Fix reply context fixing (Pleroma replies to Misskey threads) and removal of context objects See merge request pleroma/pleroma!3717
2022-08-20Switch to associated_object_id indexTusooa Zhu
2022-08-09Object: remove context_id fieldHélène
30 to 70% of the objects in the object table are simple JSON objects containing a single field, 'id', being the context's ID. The reason for the creation of an object per context seems to be an old relic from the StatusNet era, and has only been used nowadays as an helper for threads in Pleroma-FE via the `pleroma.conversation_id` field in status views. An object per context was created, and its numerical ID (table column) was used and stored as 'context_id' in the object and activity along with the full 'context' URI/string. This commit removes this field and stops creation of objects for each context, which will also allow incoming activities to use activity IDs as contexts, something which was not possible before, or would have been very broken under most circumstances. The `pleroma.conversation_id` field has been reimplemented in a way to maintain backwards-compatibility by calculating a CRC32 of the full context URI/string in the object, instead of relying on the row ID for the created context object.
2022-02-25Copyright bump for 2022Sean King
2021-05-31Merge remote-tracking branch 'pleroma/develop' into cycles-base-urlAlex Gleason
2021-05-31Deprecate Pleroma.Web.base_url/0Alex Gleason
Use Pleroma.Web.Endpoint.url/0 directly instead. Reduces compiler cycles.
2021-02-11[#3213] Reorganized hashtags cleanup. Transaction-wrapped ↵Ivan Tashkinov
Hashtag.get_or_create_by_names/1. Misc. improvements.
2021-01-31[#3213] Added HashtagsCleanupWorker periodic job.Ivan Tashkinov
2021-01-25[#3213] Switched to using embedded hashtags in Object.hashtags/1Ivan Tashkinov
(to avoid extra joins / preload in timeline queries).
2021-01-21[#3213] Ignoring of blank elements from objects.data->tag.Ivan Tashkinov
2021-01-13Merge remote-tracking branch 'remotes/origin/develop' into ↵Ivan Tashkinov
feature/object-hashtags-rework
2021-01-13Bump Copyright to 2021Haelwenn (lanodan) Monnier
grep -rl '# Copyright © .* Pleroma' * | xargs sed -i 's;Copyright © .* Pleroma .*;Copyright © 2017-2021 Pleroma Authors <https://pleroma.social/>;'
2021-01-07[#3213] Removed PK from hashtags_objects table. Improved hashtags_transfer ↵Ivan Tashkinov
mix task (logging of failed ids).
2021-01-04Object: Rework how Object.normalize workslain
Now it defaults to not fetching, and the option is named.
2020-12-30[#3213] Made Object.object_data_hashtags/1 handle both AS2 and plain text ↵Ivan Tashkinov
hashtags.
2020-12-30[#3213] Fixed Object.object_data_hashtags/1 to process only AS2 elements of ↵Ivan Tashkinov
`data.tag` (basing on #2984).
2020-12-28Revert "Merge branch 'features/hashtag-column' into 'develop'"Haelwenn
This reverts merge request !2824
2020-12-28Merge branch 'features/hashtag-column' into 'develop'Haelwenn
Insert text representation of hashtags into object["hashtags"] See merge request pleroma/pleroma!2824
2020-12-28Pleroma.Object/1: take %Object{} as argument insteadHaelwenn (lanodan) Monnier
2020-12-28[#3213] Made Object.hashtags/1 work with :hashtags assoc. Adjusted tests.Ivan Tashkinov
2020-12-26Merge remote-tracking branch 'remotes/origin/develop' into ↵Ivan Tashkinov
feature/object-hashtags-rework
2020-12-22Added Hashtag entity and objects-hashtags association with auto-sync with ↵Ivan Tashkinov
`data.tag` on Object update.
2020-12-22Create Object.hashtags/1 wrapperHaelwenn (lanodan) Monnier
2020-12-21Encapsulation of tags / hashtags fetching from objects.Ivan Tashkinov
2020-12-18Cachex: Make caching provider switchable at runtime.lain
Defaults to Cachex.
2020-08-05Fix linting.lain
2020-08-05Apply 1 suggestion(s) to 1 file(s)lain
2020-07-15Fix multiple-choice poll detectionHaelwenn (lanodan) Monnier
2020-05-20Merge branch 'issue/1509' into 'develop'lain
[#1509] purge media from cache after delete See merge request pleroma/pleroma!2539
2020-05-18MediaController: enforced owner-only access in :show action.Ivan Tashkinov
Improved error response on denied access (now 403). Adjusted tests.
2020-05-15added media proxy invalidationMaksim Pechnikov
2020-04-22Polls: Persist and show voters' countlain
2020-03-02Merge branch 'feature/1482-activity_pub_transactions' into 'develop'Haelwenn
ActivityPub actions & side-effects in transaction Closes #1482 See merge request pleroma/pleroma!2089
2020-03-02Bump copyright years of files changed after 2020-01-07Haelwenn (lanodan) Monnier
Done via the following command: git diff fcd5dd259a1700a045be902b43391b0d1bd58a5b --stat --name-only | xargs sed -i '/Pleroma Authors/c# Copyright © 2017-2020 Pleroma Authors <https:\/\/pleroma.social\/>'
2020-03-01fix for compilingAlexander Strizhakov
2020-03-01ActivityPub actions & side-effects in transactionAlexander Strizhakov
2020-02-09[#1505] Fixed `replies` serialization (included objects' ids instead of ↵Ivan Tashkinov
activities' ids).
2020-01-31Make attachments cleanup optionalRoman Chvanikov
2020-01-19Delete attachments asynchronouslyRoman Chvanikov
2020-01-17Delete attachments after object and cache cleanupRoman Chvanikov
2020-01-14Check if object->data is array when looking up attachment objects to deleteRoman Chvanikov
2020-01-12Delete attachments when status is deletedRoman Chvanikov
2019-12-11Merge branch 'develop' into issue/1411Mark Felder
2019-12-05ActivityPub: Fix deletes being exempt from MRFrinpatch
Closes #1461
2019-12-01Merge branch 'develop' into issue/1411Maksim Pechnikov
2019-11-23fetcher: move local object checking into a reusable functionrinpatch
2019-11-21Object: Use inspect to log missing preload.lain
2019-11-18updated fetch_favoritesMaksim Pechnikov
2019-10-18Fix a migration wiping user info of users that don't have any mutesrinpatch
And introduce safe_jsonb_set