在 Discover Meteor 中,如果使用 accounts-twitter,如何访问 "author" 用户名?

In Discover Meteor, how do I access the "author" username if using accounts-twitter?

我正在使用 Discover Meteor 并使用 accounts-twitter 而不是 accounts-password。

添加帖子时,author 是使用 user.username 设置的,但这不适用于 accounts-twitter。

如何访问 Twitter 句柄以设置作者?

我试过 user.services.twitter.screenName 但这没有任何作用。

原来这个问题与出版物有关。

请务必包含以下内容,以便在客户端中访问 Twitter 个人资料信息。

在服务器上:

Meteor.publish("userData", function () {
return Meteor.users.find({_id: this.userId},
    {fields: {'services.twitter': 1}});
});

并且,在客户端中:

Meteor.subscribe('userData');