From: Egor Kislitsyn Date: Mon, 20 Apr 2020 16:37:56 +0000 (+0400) Subject: Merge branch 'develop' into global-status-expiration X-Git-Url: https://git.squeep.com/?a=commitdiff_plain;h=364eecc49f137ae3c7798ad240983591e27b134c;p=akkoma Merge branch 'develop' into global-status-expiration --- 364eecc49f137ae3c7798ad240983591e27b134c diff --cc CHANGELOG.md index a0173351f,e454bd9d1..cf750637a --- a/CHANGELOG.md +++ b/CHANGELOG.md @@@ -21,10 -24,18 +24,21 @@@ The format is based on [Keep a Changelo ### Fixed - Support pagination in conversations API +### Changed +- MFR policy to set global expiration for all local Create activities + ## [unreleased-patch] + ### Fixed + - Logger configuration through AdminFE + - HTTP Basic Authentication permissions issue + - ObjectAgePolicy didn't filter out old messages + + ### Added + - NodeInfo: ObjectAgePolicy settings to the `federation` list. +
+ API Changes + - Admin API: `GET /api/pleroma/admin/need_reboot`. +
## [2.0.2] - 2020-04-08 ### Added diff --cc lib/pleroma/web/common_api/common_api.ex index 7a8ccf3e5,f50a909aa..54be69ee5 --- a/lib/pleroma/web/common_api/common_api.ex +++ b/lib/pleroma/web/common_api/common_api.ex @@@ -322,26 -324,14 +322,6 @@@ defmodule Pleroma.Web.CommonAPI d end end - # Updates the emojis for a user based on their profile - def update(user) do - emoji = emoji_from_profile(user) - source_data = Map.put(user.source_data, "tag", emoji) - - user = - case User.update_source_data(user, source_data) do - {:ok, user} -> user - _ -> user - end - - ActivityPub.update(%{ - local: true, - to: [Pleroma.Constants.as_public(), user.follower_address], - cc: [], - actor: user.ap_id, - object: Pleroma.Web.ActivityPub.UserView.render("user.json", %{user: user}) - }) - defp maybe_create_activity_expiration({:ok, activity}, %NaiveDateTime{} = expires_at) do - with {:ok, _} <- ActivityExpiration.create(activity, expires_at) do - {:ok, activity} - end -- end - - defp maybe_create_activity_expiration(result, _), do: result -- def pin(id_or_ap_id, %{ap_id: user_ap_id} = user) do with %Activity{ actor: ^user_ap_id,