Giter VIP home page Giter VIP logo

Comments (5)

SomeBottle avatar SomeBottle commented on July 23, 2024

Disqus好似被墙了.....

from diaspora.

LoeiFy avatar LoeiFy commented on July 23, 2024

换原生评论吧,我最近会加上这个功能

from diaspora.

SomeBottle avatar SomeBottle commented on July 23, 2024

十分期待原生评论.

from diaspora.

SomeBottle avatar SomeBottle commented on July 23, 2024

除了原生评论,请问多说部分代码能改成友言或者畅言部分的呢。如果可以望指出一下代码具体修改方位...😁

from diaspora.

LoeiFy avatar LoeiFy commented on July 23, 2024

已经添加原生评论,第三方评论都去掉了

@SomeBottle 如果要添加第三方评论的话,比较麻烦,你可以参考这里来添加

Diaspora/assets/Diaspora.js

Lines 448 to 502 in fd997f7

case (tag.indexOf('comment') != -1 && tag.indexOf('link') != -1):
Diaspora.loading()
$('.comment').removeClass('link').html('')
var id = $('.comment').data('id');
if (window.disqus_shortname) {
$('.comment').append('<div id="disqus_thread"></div>')
window.disqus_config = function() {
this.page.identifier = id
this.page.url = location.href
this.page.title = document.title
}
var get_disqus = function() {
DISQUS.reset({
reload: true,
config: function () {
this.page.identifier = id
this.page.url = location.href.split('?')[0]
this.page.title = document.title
}
})
Diaspora.loaded()
}
if (window.DISQUS) {
get_disqus()
} else {
$.getScript('//' + window.disqus_shortname + '.disqus.com/embed.js', function() {
get_disqus()
})
}
} else {
var get_comments = function() {
var el = document.createElement('div');
el.setAttribute('data-thread-key', id)
DUOSHUO.EmbedThread(el)
$('.comment').html(el)
Diaspora.loaded()
};
if (window.DUOSHUO) {
get_comments()
} else {
$.getScript('//static.duoshuo.com/embed.js', function() {
get_comments()
})
}
}
break;

from diaspora.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.