244 Commits

Author SHA1 Message Date
Ben Busby
d280f961f5
Prepend /u/ for Bibliogram redirects if not present
Bibliogram links require a "/u/" prefix when viewing a user's profile,
which does not match Instagram's URL paradigm. This adds a bit of logic
for Bibliogram links to prepend this prefix if the user is not visiting
a post (indicated by a "/p/" prefix, which Bibliogram and Instagram BOTH
use) or the home page of an instance (indicated by an empty path value).
2022-06-21 15:53:16 -06:00
Ben Busby
52833ef89e
Redirect youtu.be links to the correct instance
Farside was previously only looking for links containing "youtube.com"
when performing the redirect for full URLs to youtube, which obviously
doesn't work for youtu.be shortened links. This updates the matching
logic to use a regex element for every key in the services map in order
to match against multiple possible domains for each parent service.

Fixes #40
2022-06-21 15:01:23 -06:00
Ben Busby
fb286398bc
Fix Wikiless auto update workflow
Wikiless updated their instance json with a couple of changes that broke
Farside's auto update workflow:
- The protocol for each instance is now included by default (no need to prepend
  "https://")
- The instances are differentiated between regular, onion, and i2p (no need to
  check for ".onion" in regular instance URLs)
2022-06-21 14:04:59 -06:00
github-actions
3654fee2b3 [CI] Auto update instances 2022-06-18 00:10:20 +00:00
github-actions
8714233bf3 [CI] Auto update instances 2022-06-17 00:10:05 +00:00
github-actions
6eda012332 [CI] Auto update instances 2022-06-16 00:09:25 +00:00
github-actions
a8e3bfdb43 [CI] Auto update instances 2022-06-15 00:11:13 +00:00
github-actions
4911410337 [CI] Auto update instances 2022-06-14 00:10:48 +00:00
Ben Busby
6210ed56e7
Include query params for all /_/ prefixed links
Query params were not included when using the "/_/" prefix for farside
links. This extracts the logic for parsing query params into a function
that is then used for both /_/ and non-/_/ links.
2022-06-13 10:20:39 -06:00
github-actions
213658ae6c [CI] Auto update instances 2022-06-13 00:11:04 +00:00
Ben Busby
7e31ea0ec3
Update services.json 2022-06-12 13:25:19 -06:00
github-actions
0f31b31f2a [CI] Auto update instances 2022-06-12 00:10:17 +00:00
github-actions
668d49a96c [CI] Auto update instances 2022-06-11 00:09:20 +00:00
github-actions
6011b989e4 [CI] Auto update instances 2022-06-10 00:09:41 +00:00
Ben Busby
4590170a61
Include new URL functionality in readme 2022-06-09 17:11:09 -06:00
Ben Busby
5006b97dfa
Auto select frontend for links to "parent" service
Farside now supports redirecting based on a provided link to a "parent"
service, if such a parent service is supported.

For example, a link such as:

farside.link/https://www.youtube.com/watch?v=dQw4w9WgXcQ

will now redirect to any of the available YouTube related frontends.

This works by matching against a mapping of "parent" service domains
("youtube.com", "reddit.com", etc) to a list of their respective frontend
alternatives (["invidious", "piped"], ["libreddit", "teddit"], etc). A
random element is chosen from this list, and the remainder of Farside's
routing logic proceeds as if the user had chosen the service directly to
begin with.

Closes #37
v0.2.1
2022-06-09 13:08:01 -06:00
github-actions
ff8d220e90 [CI] Auto update instances 2022-06-09 00:09:21 +00:00
github-actions
4b9e326c12 [CI] Auto update instances 2022-06-08 00:08:41 +00:00
Ben Busby
ba43533dcc
Add librarian (LBRY/Odysee frontend)
Closes #36
2022-06-07 11:17:57 -06:00
github-actions
0822ad4902 [CI] Auto update instances 2022-06-07 00:08:45 +00:00
github-actions
a05ed94cd1 [CI] Auto update instances 2022-06-06 00:08:44 +00:00
github-actions
4e0916353e [CI] Auto update instances 2022-06-05 00:11:36 +00:00
github-actions
74531a5651 [CI] Auto update instances 2022-06-04 00:09:56 +00:00
github-actions
5127f9ad5a [CI] Auto update instances 2022-06-01 00:11:38 +00:00
github-actions
22f284ccc3 [CI] Auto update instances 2022-05-29 00:11:18 +00:00
github-actions
dae9a50943 [CI] Auto update instances 2022-05-27 00:09:55 +00:00
github-actions
5fdbbec4cb [CI] Auto update instances 2022-05-25 00:11:19 +00:00
github-actions
53125f2c7b [CI] Auto update instances 2022-05-24 00:10:47 +00:00
github-actions
cc171e32b3 [CI] Auto update instances 2022-05-23 00:10:31 +00:00
github-actions
6fc27f99fe [CI] Auto update instances 2022-05-22 00:11:03 +00:00
github-actions
a54d899b23 [CI] Auto update instances 2022-05-21 00:09:29 +00:00
github-actions
8e6b69489a [CI] Auto update instances 2022-05-19 00:09:39 +00:00
invokah
c1ed4ff60d
Add required debian package to README [skip ci] (#35)
Add a required package (erlang dev) for debian people hoping to run farside
themselves
2022-05-18 16:55:23 -06:00
github-actions
e8518fc83b [CI] Auto update instances 2022-05-18 00:10:34 +00:00
github-actions
59385561ce [CI] Auto update instances 2022-05-15 00:13:44 +00:00
github-actions
df41be4f69 [CI] Auto update instances 2022-05-14 00:12:38 +00:00
github-actions
869e232fd7 [CI] Auto update instances 2022-05-13 00:11:29 +00:00
github-actions
6542ee09e7 [CI] Auto update instances 2022-05-12 00:10:24 +00:00
github-actions
73a4bd9dfb [CI] Auto update instances 2022-05-11 00:09:12 +00:00
github-actions
ae32066b32 [CI] Auto update instances 2022-05-10 00:09:51 +00:00
github-actions
eea0701edd [CI] Auto update instances 2022-05-07 00:08:36 +00:00
github-actions
4fa58757aa [CI] Auto update instances 2022-05-06 00:09:28 +00:00
github-actions
3845ee8328 [CI] Auto update instances 2022-05-05 00:09:26 +00:00
github-actions
818fb6816c [CI] Auto update instances 2022-05-04 00:09:08 +00:00
github-actions
842b769d10 [CI] Auto update instances 2022-05-03 00:09:29 +00:00
github-actions
0ccaeedaf4 [CI] Auto update instances 2022-05-02 00:09:24 +00:00
github-actions
c5c48d1e19 [CI] Auto update instances 2022-05-01 00:12:16 +00:00
github-actions
b1b726a559 [CI] Auto update instances 2022-04-28 00:11:43 +00:00
github-actions
cb11a28e24 [CI] Auto update instances 2022-04-27 00:10:11 +00:00
github-actions
282a3a81c4 [CI] Auto update instances 2022-04-26 00:09:38 +00:00