-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
102 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
export default function Page() { | ||
return ( | ||
<> | ||
<h2 className="text-center">删除政策</h2> | ||
<p> | ||
如果您认为我们保存的帖子侵犯了您的权益或违反公序良俗,请发邮件至{" "} | ||
<a href="mailto:lda@piterator.com">lda@piterator.com</a>{" "} | ||
申请删除。您的邮件应该包含: | ||
</p> | ||
<ol> | ||
<li>要删除的帖子编号(一个或多个);</li> | ||
<li> | ||
我们应该删除这个/这些帖子的理由(不会被公开,但这是我们判断是否删帖的依据); | ||
</li> | ||
<li>*申请者的洛谷用户编号;</li> | ||
<li> | ||
*需要展示给访问者的文本内容(例如,可以包含公开的删除原因、用户应该查阅的辟谣帖等),每个帖子须对应一段文字。 | ||
</li> | ||
</ol> | ||
<p>上述标注星号(*)的内容会在被删除的帖子页面上展示。</p> | ||
<p>我们一般将会在一天内回复您。</p> | ||
</> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 14 additions & 0 deletions
14
prisma/migrations/20230716173707_discussion_takedown/migration.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
-- CreateTable | ||
CREATE TABLE "DiscussionTakedown" ( | ||
"discussionId" INTEGER NOT NULL, | ||
"reason" TEXT NOT NULL, | ||
"submitterId" INTEGER NOT NULL, | ||
|
||
CONSTRAINT "DiscussionTakedown_pkey" PRIMARY KEY ("discussionId") | ||
); | ||
|
||
-- AddForeignKey | ||
ALTER TABLE "DiscussionTakedown" ADD CONSTRAINT "DiscussionTakedown_discussionId_fkey" FOREIGN KEY ("discussionId") REFERENCES "Discussion"("id") ON DELETE RESTRICT ON UPDATE CASCADE; | ||
|
||
-- AddForeignKey | ||
ALTER TABLE "DiscussionTakedown" ADD CONSTRAINT "DiscussionTakedown_submitterId_fkey" FOREIGN KEY ("submitterId") REFERENCES "User"("id") ON DELETE RESTRICT ON UPDATE CASCADE; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters