diff --git a/app/lib/express.js b/app/lib/express.js index 16ee151..fb97226 100644 --- a/app/lib/express.js +++ b/app/lib/express.js @@ -108,7 +108,6 @@ router.post("/publish", async (req, res) => { router.post("/profile/:id/publish", async (req, res) => { const id = req.params.id; const visibility = req.body.visibility; - console.log("req.body", req.body); if (visibility == "vanishing") { await ssbServer.private.publish( diff --git a/app/lib/queries.js b/app/lib/queries.js index 68ef990..0435818 100644 --- a/app/lib/queries.js +++ b/app/lib/queries.js @@ -145,7 +145,6 @@ const getVanishingMessages = (ssbServer, profile) => { $filter: { value: { - author: profile.id, private: true, content: { type: "post", diff --git a/app/public/style.css b/app/public/style.css index c974fad..b045954 100644 --- a/app/public/style.css +++ b/app/public/style.css @@ -131,13 +131,14 @@ button.vanishing-message { padding: 10px; cursor: pointer; color: #000; + margin-right: 8px; } .overlay { display: none; position: fixed; z-index: 1; - background: rgba(0, 0, 0, 0.5); + background: rgba(0, 0, 0, 0.4); top: 0; left: 0; width: 100%; @@ -153,6 +154,7 @@ button.vanishing-message { left: 50%; transform: translate(-50%, -50%); min-width: 400px; + box-shadow: 0 0 15px rgba(0, 0, 0, 0.8); } .modal-header { diff --git a/app/views/index.ejs b/app/views/index.ejs index 7654b17..acd2e27 100644 --- a/app/views/index.ejs +++ b/app/views/index.ejs @@ -25,7 +25,7 @@ <% if (vanishingMessages.length > 0) { %>

Vanishing Messages

- <% vanishingMessages.map(post => { %> + <% vanishingMessages.reverse().map(post => { %>