diff options
| author | lain <lain@soykaf.club> | 2018-04-22 10:01:10 +0200 | 
|---|---|---|
| committer | lain <lain@soykaf.club> | 2018-04-22 10:01:10 +0200 | 
| commit | 0574df273c06f8ce5dea10f9978c7dd5bfea558d (patch) | |
| tree | c53f5d8978d225ea9f244d998c3b9d0e444e6870 /lib | |
| parent | 114ca9e069a0914cc1ad8bf13690818eb132b0bf (diff) | |
| download | pleroma-0574df273c06f8ce5dea10f9978c7dd5bfea558d.tar.gz pleroma-0574df273c06f8ce5dea10f9978c7dd5bfea558d.zip | |
Small cleanup.
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/pleroma/formatter.ex | 7 | ||||
| -rw-r--r-- | lib/pleroma/web/common_api/common_api.ex | 1 | 
2 files changed, 5 insertions, 3 deletions
| diff --git a/lib/pleroma/formatter.ex b/lib/pleroma/formatter.ex index a708a275e..456416fbd 100644 --- a/lib/pleroma/formatter.ex +++ b/lib/pleroma/formatter.ex @@ -169,8 +169,11 @@ defmodule Pleroma.Formatter do        subs ++          Enum.map(links, fn {uuid, url} ->            {:safe, link} = Phoenix.HTML.Link.link(url, to: url) -          link = link -          |> IO.iodata_to_binary + +          link = +            link +            |> IO.iodata_to_binary() +            {uuid, link}          end) diff --git a/lib/pleroma/web/common_api/common_api.ex b/lib/pleroma/web/common_api/common_api.ex index 21225c3b7..2c4b591d4 100644 --- a/lib/pleroma/web/common_api/common_api.ex +++ b/lib/pleroma/web/common_api/common_api.ex @@ -103,7 +103,6 @@ defmodule Pleroma.Web.CommonAPI do            additional: %{"cc" => cc}          }) -      User.increase_note_count(user)        res      end    end | 
