Storing pHash. Fixed RedGIFs user agent.
This commit is contained in:
@@ -21,7 +21,6 @@ async function fetchPredata() {
|
||||
address: data.addr,
|
||||
agent: data.agent,
|
||||
token: data.token,
|
||||
userAgent,
|
||||
};
|
||||
}
|
||||
|
||||
@@ -66,7 +65,7 @@ async function redgifsApi(host, post, { predata }) {
|
||||
const res = await fetch(`https://api.redgifs.com/v2/gifs/${host.id.toLowerCase()}`, {
|
||||
headers: {
|
||||
authorization: `Bearer ${predata.token}`,
|
||||
'user-agent': predata.userAgent,
|
||||
'user-agent': predata.agent,
|
||||
},
|
||||
});
|
||||
|
||||
@@ -99,7 +98,7 @@ async function redgifsApi(host, post, { predata }) {
|
||||
original: data.gif,
|
||||
}],
|
||||
headers: {
|
||||
'user-agent': predata.userAgent,
|
||||
'user-agent': predata.agent,
|
||||
},
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user