summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorMark Felder <feld@feld.me>2024-01-22 18:11:15 -0500
committerMark Felder <feld@feld.me>2024-01-22 18:37:19 -0500
commit0dd65246eac9c1c738cc4ea47798caec1797ad6d (patch)
tree527605103f70ac3acb34fafece6e5db52376d4f6 /lib
parent5f71928f6b12584ba456cbeb8a92c38078a468ae (diff)
downloadpleroma-0dd65246eac9c1c738cc4ea47798caec1797ad6d.tar.gz
pleroma-0dd65246eac9c1c738cc4ea47798caec1797ad6d.zip
MRF.HashtagPolicy: fix dialyzer error
lib/pleroma/web/activity_pub/mrf/hashtag_policy.ex:87:exact_eq The test <<_::32>> == <<_::48>> can never evaluate to 'true'.
Diffstat (limited to 'lib')
-rw-r--r--lib/pleroma/web/activity_pub/mrf/hashtag_policy.ex2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/pleroma/web/activity_pub/mrf/hashtag_policy.ex b/lib/pleroma/web/activity_pub/mrf/hashtag_policy.ex
index d13d980cc..fdb9a9dba 100644
--- a/lib/pleroma/web/activity_pub/mrf/hashtag_policy.ex
+++ b/lib/pleroma/web/activity_pub/mrf/hashtag_policy.ex
@@ -84,7 +84,7 @@ defmodule Pleroma.Web.ActivityPub.MRF.HashtagPolicy do
if hashtags != [] do
with {:ok, message} <- check_reject(message, hashtags),
{:ok, message} <-
- (if "type" == "Create" do
+ (if type == "Create" do
check_ftl_removal(message, hashtags)
else
{:ok, message}