mirror of
https://github.com/omnivore-app/omnivore.git
synced 2026-03-11 08:54:26 +00:00
Create new newsletter if old one is deleted
This commit is contained in:
parent
6435a20246
commit
fa731acd74
3 changed files with 24 additions and 2 deletions
|
|
@ -72,7 +72,11 @@ export const saveEmail = async (
|
|||
state: ArticleSavingRequestStatus.Succeeded,
|
||||
}
|
||||
|
||||
const page = await getPageByParam({ userId: ctx.uid, url: articleToSave.url })
|
||||
const page = await getPageByParam({
|
||||
userId: ctx.uid,
|
||||
url: articleToSave.url,
|
||||
state: ArticleSavingRequestStatus.Succeeded,
|
||||
})
|
||||
if (page) {
|
||||
const result = await updatePage(page.id, { archivedAt: null }, ctx)
|
||||
console.log('updated page from email', result)
|
||||
|
|
|
|||
|
|
@ -877,7 +877,7 @@ Readability.prototype = {
|
|||
|
||||
// Do these last as the previous stuff may have removed junk
|
||||
// that will affect these
|
||||
this._cleanConditionally(articleContent, "table");
|
||||
!this._keepTables && this._cleanConditionally(articleContent, "table");
|
||||
this._cleanConditionally(articleContent, "ul");
|
||||
this._cleanConditionally(articleContent, "div");
|
||||
|
||||
|
|
|
|||
|
|
@ -81,6 +81,9 @@
|
|||
<p>12,266.41</p>
|
||||
</td>
|
||||
<td>
|
||||
<DIV>
|
||||
<p>+1.27%</p>
|
||||
</DIV>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
|
@ -102,6 +105,9 @@
|
|||
<p>4,110.41</p>
|
||||
</td>
|
||||
<td>
|
||||
<DIV>
|
||||
<p>+1.06%</p>
|
||||
</DIV>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
|
@ -123,6 +129,9 @@
|
|||
<p>32,381.34</p>
|
||||
</td>
|
||||
<td>
|
||||
<DIV>
|
||||
<p>+0.71%</p>
|
||||
</DIV>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
|
@ -144,6 +153,9 @@
|
|||
<p>3.358%</p>
|
||||
</td>
|
||||
<td>
|
||||
<DIV>
|
||||
<p>+4.3 bps</p>
|
||||
</DIV>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
|
@ -165,6 +177,9 @@
|
|||
<p>$22,311.05</p>
|
||||
</td>
|
||||
<td>
|
||||
<DIV>
|
||||
<p>+3.05%</p>
|
||||
</DIV>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
|
@ -186,6 +201,9 @@
|
|||
<p>$163.43</p>
|
||||
</td>
|
||||
<td>
|
||||
<DIV>
|
||||
<p>+3.85%</p>
|
||||
</DIV>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
|
|
|||
Loading…
Reference in a new issue