Skip to content
This repository was archived by the owner on Nov 8, 2022. It is now read-only.

Commit 43d3315

Browse files
committed
refactor(notify): remove mention parse when create article
1 parent 6fd1118 commit 43d3315

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

lib/groupher_server/cms/delegates/article_curd.ex

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ defmodule GroupherServer.CMS.Delegate.ArticleCURD do
1414
import ShortMaps
1515

1616
alias Helper.{Later, ORM, QueryBuilder, Converter}
17-
alias GroupherServer.{Accounts, CMS, Delivery, Email, Repo, Statistics}
17+
alias GroupherServer.{Accounts, CMS, Email, Repo, Statistics}
1818

1919
alias Accounts.Model.User
2020
alias CMS.Model.{Author, Community, PinnedArticle, Embeds}
@@ -176,11 +176,6 @@ defmodule GroupherServer.CMS.Delegate.ArticleCURD do
176176
Later.run({Hooks.Mention, :handle, [article]})
177177
Later.run({__MODULE__, :notify_admin_new_article, [article]})
178178
end)
179-
|> Multi.run(:mention_users, fn _, %{create_article: article} ->
180-
# article.body |> Jason.decode!() |> 各种小 task
181-
Delivery.mention_from_content(community.raw, thread, article, attrs, %User{id: uid})
182-
{:ok, :pass}
183-
end)
184179
|> Multi.run(:log_action, fn _, _ ->
185180
Statistics.log_publish_action(%User{id: uid})
186181
end)

0 commit comments

Comments
 (0)