Skip to content

Commit 54c18f5

Browse files
committed
https://github.com/bonfire-networks/bonfire-app/issues/1535
1 parent 3ba6412 commit 54c18f5

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

lib/quotes.ex

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -468,6 +468,16 @@ defmodule Bonfire.Social.Quotes do
468468
{:error, other} ->
469469
err(other, "Unexpected error fetching quote authorization")
470470
end
471+
|> case do
472+
{:not_authorized, reason} ->
473+
info(reason, "Quote authorization invalid or revoked, removing quote tag if present")
474+
reject_quote(quote_post, quoted_object)
475+
476+
{:not_authorized, reason}
477+
478+
other ->
479+
other
480+
end
471481
end
472482

473483
defp get_first_quoted_object(quote_post) do

0 commit comments

Comments
 (0)