Serve non-public activities in /api/v1/favourites
[akkoma] / lib / pleroma / gopher / server.ex
index 6baacc5661ffbb4e3bec9dd4250cd469d1f53416..3b9629d77643a4fa3e3f9f817af76626aa4bb542 100644 (file)
@@ -66,7 +66,8 @@ defmodule Pleroma.Gopher.Server.ProtocolHandler do
   def link(name, selector, type \\ 1) do
     address = Pleroma.Web.Endpoint.host()
     port = Pleroma.Config.get([:gopher, :port], 1234)
-    "#{type}#{name}\t#{selector}\t#{address}\t#{port}\r\n"
+    dstport = Pleroma.Config.get([:gopher, :dstport], port)
+    "#{type}#{name}\t#{selector}\t#{address}\t#{dstport}\r\n"
   end
 
   def render_activities(activities) do