mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-06 09:13:48 +08:00
opt: share article
Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
@@ -620,10 +620,17 @@ class _ArticlePageState extends State<ArticlePage>
|
||||
],
|
||||
),
|
||||
),
|
||||
if (_articleCtr.type == 'read' && _articleCtr.stats.value != null)
|
||||
if (_articleCtr.commentType == 12 &&
|
||||
_articleCtr.stats.value != null)
|
||||
PopupMenuItem(
|
||||
onTap: () {
|
||||
onTap: () async {
|
||||
try {
|
||||
if (_articleCtr.summary.cover == null) {
|
||||
final res = await _articleCtr.getArticleCover();
|
||||
if (res != true) {
|
||||
return;
|
||||
}
|
||||
}
|
||||
PageUtils.pmShare(
|
||||
content: {
|
||||
"id": _articleCtr.commentId,
|
||||
|
||||
Reference in New Issue
Block a user