dev vouch dev on at. thats about it atvouch.dev
8
fork

Configure Feed

Select the types of activity you want to include in your feed.

connect a separate tap for tangled pulls

authored by

Luna and committed by tangled.org d121b122 f2d62514

+31 -11
+6
appview/config/runtime.exs
··· 6 6 password: System.get_env("TAP_PASSWORD") 7 7 end 8 8 9 + if tap_tangled_uri = System.get_env("TAP_TANGLED_URI") do 10 + config :atvouch, :tap_tangled, 11 + uri: tap_tangled_uri, 12 + password: System.get_env("TAP_TANGLED_PASSWORD") 13 + end 14 + 9 15 if tangled_handle = System.get_env("TANGLED_BOT_HANDLE") do 10 16 config :atvouch, :tangled, 11 17 url: System.get_env("TANGLED_URL", "https://tangled.org"),
+25 -11
appview/lib/atvouch/application.ex
··· 47 47 end 48 48 49 49 defp tap_children do 50 - case Application.get_env(:atvouch, :tap) do 51 - nil -> 52 - [] 50 + vouch_tap(Application.get_env(:atvouch, :tap)) ++ 51 + tangled_tap(Application.get_env(:atvouch, :tap_tangled)) 52 + end 53 53 54 - config -> 55 - [ 56 - {Atvouch.Tap.Socket, 57 - uri: Keyword.fetch!(config, :uri), 58 - handler: Atvouch.TapHandler, 59 - password: Keyword.get(config, :password)} 60 - ] 61 - end 54 + defp vouch_tap(nil), do: [] 55 + 56 + defp vouch_tap(config) do 57 + [ 58 + {Atvouch.Tap.Socket, 59 + name: Atvouch.Tap.VouchSocket, 60 + uri: Keyword.fetch!(config, :uri), 61 + handler: Atvouch.TapHandler, 62 + password: Keyword.get(config, :password)} 63 + ] 64 + end 65 + 66 + defp tangled_tap(nil), do: [] 67 + 68 + defp tangled_tap(config) do 69 + [ 70 + {Atvouch.Tap.Socket, 71 + name: Atvouch.Tap.TangledSocket, 72 + uri: Keyword.fetch!(config, :uri), 73 + handler: Atvouch.TapHandler, 74 + password: Keyword.get(config, :password)} 75 + ] 62 76 end 63 77 end